﻿@model HelpInfo.GetMsWeb.Models.PlanningCollectifViewModel

@{
    ViewBag.Title = "IndexCollectif";
}

<h2> Planning Collectif @ViewBag.FullName</h2>
<h3>Matricule: @User.Identity.Name</h3>

@using (Html.BeginForm())
{
    <table class="table">
        <tr>
            <th>
                @Html.Label("Matricule")
            </th>
            <th>
                @Html.Label("Jour")
            </th>
            <th>
                @Html.Label("NomComplet")
            </th>
            <th>
                @Html.Label("Num_semaine")
            </th>
            <th>
                @Html.Label("Type_Prise1")
            </th>
            <th>
                @Html.Label("Heure_début1")
            </th>
            <th>
                @Html.Label("Heure_fin1")
            </th>
            <th>
                @Html.Label("Pause1")
            </th>
            <th>
                @Html.Label("Repas1")
            </th>
            <th>
                @Html.Label("IDEtablissement1")
            </th>
            <th>
                @Html.Label("Type_Prise2")
            </th>
            <th>
                @Html.Label("Heure_début2")
            </th>
            <th>
                @Html.Label("Heure_fin2")
            </th>
            <th>
                @Html.Label("Pause2")
            </th>
            <th>
                @Html.Label("Repas2")
            </th>
            <th>
                @Html.Label("IDEtablissement2")
            </th>
            <th>
                @Html.Label("Type_Prise3")
            </th>
            <th>
                @Html.Label("Heure_début3")
            </th>
            <th>
                @Html.Label("Heure_fin3")
            </th>
            <th>
                @Html.Label("Repas3")
            </th>
            <th>
                @Html.Label("IDEtablissement3")
            </th>
            <th>
                @Html.Label("nuit")
            </th>
            <th></th>
        </tr>

    @foreach (var item in Model.PlanningIndividuel) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Matricule)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Jour)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.NomComplet)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Num_semaine)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Type_Prise1)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Heure_début1)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Heure_fin1)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Pause1)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Repas1)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IDEtablissement1)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Type_Prise2)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Heure_début2)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Heure_fin2)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Pause2)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Repas2)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IDEtablissement2)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Type_Prise3)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Heure_début3)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Heure_fin3)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Repas3)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IDEtablissement3)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.nuit)
            </td>
            <td>
                @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            </td>
        </tr>
    }

    </table>

    @Html.ListBoxFor(m => m.SelectedAgents, Model.AgentsList, new { size = Model.AgentsList.Count() })
    <br />
    <input type="submit" value="Submit" />

}
